﻿@model JuniorProject.Models.Employee.CreationModels.Create_JobPostingModel

@{
    ViewBag.Title = "EditJobPosting";
}

<h2>Edit Job Posting</h2>
<br />

@using (Html.BeginForm(new { id = ViewBag.PostingID }))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Create_JobPostingModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.JobID, "Job Type")
        </div>
        <div class="editor-field">
            @Html.DropDownList("Jobs_SelectList", "--Select a Job--")
            @Html.ActionLink("Add new Job Type", "AddJob")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LocationID, "Store Location")
        </div>
        <div class="editor-field">
            @Html.DropDownList("Locations_SelectList", "--Select a Location--")
            @Html.ActionLink("Add new Location", "AddLocation")
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

@Html.ActionLink("Back to List", "JobPostings")
<p>
    @Html.Partial("_EmployeeBottomNavBar", ViewData["AccessLevel"])
</p>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
